package com.wq.wrongquestion.mapper.che;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import com.wq.wrongquestion.entity.che.ChemistryEntity;

/**
 *  化学 
 */
@Mapper
public interface ChemistryMapper {
    
    @Select("select zjnm from m_chemistryzj where zjid=#{zjID}")
    public String getChemistryZjnm(String zjID);
    

    @Select("select zjID from m_chemistryzj")
    public List<String>  getChemistryZjID();
    /**
     * 获取所有章节
     * @return
     */

    public List<String>  getChemistryZj();

    public List<ChemistryEntity> getChemistry(ChemistryEntity chemistryEntity);


    public List<ChemistryEntity> getChemistryByID(Integer id);
    /**
     * 插入错题 
     */

    public void insChemistry(ChemistryEntity chemistryEntity);
    /**
     * 更新错题
     * @param chemistryEntity
     */
    public Integer updChemistry(ChemistryEntity chemistryEntity);
    /**
     * 删除错题
     * 
     */
    public Integer delChemistry(Integer id);
}
